<!DOCTYPE html>
<html>

<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="renderer" content="webkit">
    <link rel="icon" type="image/x-icon" href="favicon.ico">
    <title>2.0-货主资质审核-货主资质审核</title>
    <link rel="stylesheet" href="styles/bootstrap/bootstrap.css">
    <link rel="stylesheet" href="styles/bootstrap-table.css">
    <link rel="stylesheet" href="lib/layui/css/layui.css">
    <link rel="stylesheet" href="styles/bootstrap-datetimepicker.min.css">
    <link rel="stylesheet" href="styles/awesome/font-awesome.min.css">
    <link rel="stylesheet" href="styles/reset.css">
    <link rel="stylesheet" href="styles/main.css">
    <link rel="stylesheet" href="styles/cy.css">
    <link rel="stylesheet" href="styles/qd.css">
    <link rel="stylesheet" href="styles/sfy_nav.css">

</head>

<body>
    <!--头部-->
    <div class="header">
        <div class="header_top">
            <div class="user-nav">
                <div class="current-user">
                    <span class="cu-name">樊明</span>
                    <div class="userboxinfo">
                        <ul class="ul_userlist">
                            <li><a href="/logout">退出</a></li>
                        </ul>
                    </div>
                </div>
                欢迎您登录
            </div>
        </div>
        <div class="header_con">
            <a href="#" class="logo">
                <img src="images/logo.png">
            </a>
        </div>
    </div>
    <!--end头部-->
    <!--菜单-->
    <div class="headernav">
        <div class="head_nav">
            <!--菜单-->
            <div class="source_menu">
                <div class="menu_btn">资源</div>
                <div class="menu_list">
                    <ul class="has_sub">
                        <li class="active">
                            <a class="menu_tit">权限管理</a>
                            <ul>
                                <li>
                                    <a href="#!/authoritymenuconfig" class="active">菜单配置</a>
                                </li>
                                <li>
                                    <a href="#!/authorityRoleConfig">角色配置</a>
                                </li>
                                <li>
                                    <a href="#!/userManagerList">用户管理</a>
                                </li>
                            </ul>
                        </li>
                        <li class="">
                            <a class="menu_tit">权限管理</a>
                            <ul>
                                <li>
                                    <a href="#!/authoritymenuconfig" class="active">菜单配置</a>
                                </li>
                                <li>
                                    <a href="#!/authorityRoleConfig">角色配置</a>
                                </li>
                                <li>
                                    <a href="#!/userManagerList">用户管理</a>
                                </li>
                            </ul>
                        </li>
                    </ul>
                </div>
            </div>
            <!--end 菜单-->
            <!--一级按钮-->
            <div class="operate-btns">
            </div>
            <!--end 一级按钮-->
        </div>
        <div class="con_breadcrumb">
            <ol class="breadcrumb">
                <li><a href="#">货主资质审核</a></li>
            </ol>
            <h3 class="current_module">货主资质审核</h3>
        </div>
    </div>
    <!--end菜单-->
    <div class="content">

        <div class="group_search layui-form" id="table_search">
            <div class="row">
                <div class="col-md-4 col-lg-4">
                    <input type="text" class="form-control" placeholder="输入货主名称关键词" name="name">
                </div>
                <div class="col-md-8 col-lg-8 ">
                    <button type="button" class="btn btn-def" action="search">
                  <span class="glyphicon glyphicon-search"></span>
                  查询
              </button>
                </div>
            </div>
        </div>

        <h2 class="h2_1">
            您当前共有<span id="id_num">11</span>条货主资质审核
        </h2>

        <table class="table table-hover table-striped table-1">

        </table>
        <div id="page"></div>


    </div>


    <footer class="footer">
        <p>
            Copyright © 2015-2017
            <a href="http://www.miitbeian.gov.cn/state/outPortal/loginPortal.action" target="_blank">粤ICP备16033858-1</a> 深圳传世般若科技有限公司
        </p>
    </footer>
    <script type="text/javascript" src="lib/jquery.min.js"></script>
    <script type="text/javascript" src="lib/underscore-min.js"></script>
    <script type="text/javascript" src="lib/layui/lay/dest/layui.all.js">
    </script>
    <script type="text/javascript" src="lib/bootstrap.min.js"></script>
    <script type="text/javascript" src="lib/bootstrap-table.js"></script>
    <script type="text/javascript" src="lib/jquery.validate.min.js"></script>
    <script type="text/javascript" src="lib/city-picker.js"></script>
    <script type="text/javascript" src="lib/bootstrap-datetimepicker.min.js"></script>
    <script type="text/javascript" src="lib/jquery.slimscroll.js"></script>
    <script type="text/javascript" src="lib/echarts-all.js"></script>
    <script type="text/javascript" src="lib/flot/jquery.flot.js"></script>
    <script type="text/javascript" src="lib/zUI.js"></script>
    <!--新导航-->
    <script type="text/javascript" src="lib/snap.svg-min.js"></script>
    <script type="text/javascript" src="lib/modernizr.custom.js"></script>
    <script type="text/javascript" src="js/header_sfy.js"></script>
    <!--end新导航-->
    <script type="text/javascript" src="lib/paging.js"></script>
    <script type="text/javascript" src="js/app.js"></script>
    <script type="text/javascript" src="js/validate-demo.js"></script>
    <script type="text/javascript" src="js/main.js"></script>
    <script type="text/template" id="idselect">
        <select name="<%=obj.name%>">
        <% _.each(data,function(item){%>
            <% if(item.id==obj.val){%>
              <option value="<%=item.id%>" selected><%=item.name%></option>
            <%} else{%>
              <option value="<%=item.id%>"><%=item.name%></option>
            <%}%>
        <%})%>
      </select>
    </script>
    <script type="text/template" id="temp1">
        <thead>
            <tr>
                <% _.each(columns,function(item){%>
                    <th>
                        <%=item.title%>
                    </th>
                    <%})%>
            </tr>
        </thead>
        <tbody>
            <% _.each(data,function(item){%>
                <tr data-id="<%=item.id%>">
                    <% _.each(columns,function(col){%>
                        <td class="<%=col.class%>">
                            <% if(col.field==0){%>
                                <%=col.action%>
                                    <%} else{%>
                                        <span class="<%= app.getselectclass(item[col.field],col.name)%>">
                          <% if(col.type=='select'){%>
                                 <%= app.getselect(item[col.field],col.name)%>
                          <%} else{%>
                               <%= item[col.field]%>
                          <%}%>
                         
                          
                        </span>
                                        <span>
                          <% if(col.edit==0){%>
                            <%= item[col.field]%>
                          <%} else {%>
                            <% if(col.type=='input'){%>
                                <input type="text" value="<%=item[col.field]%>" 
                                name="<%=col.field%>">
                            <%} else if(col.type=='select'){%>

                                <%= app.select(item[col.field],col.field,col.name) %>
                            <%}%>
                          <%}%>
                        </span>
                                        <%}%>

                        </td>
                        <%})%>
                </tr>
                <%})%>

        </tbody>
    </script>
    <script type="text/javascript">
        $(function() {
            window.table1 = new app.tableupdate({
                ele: '.table-1',
                delete: '/delete',
                save: '/save',
                url: 'json/table1.json',
                columns: [{
                    field: 'id',
                    title: '序号'
                }, {
                    field: 'ccsmc',
                    title: '货主名称'
                }, {
                    field: 'jc',
                    title: '简称'
                }, {
                    field: 'tel',
                    title: '联系人电话',
                    class: 'text-center'
                }, {
                    field: 'zczb',
                    title: '注册资本(万元)',
                    class: 'text-right'
                }, {
                    field: 'phone',
                    title: '公司电话',
                    class: 'text-center'
                }, {
                    field: 'state',
                    title: '状态',
                    name: 'stateb',
                    type: 'select',
                    class: 'text-center'
                }],
                call: function(res) { //ajax 回调 参数为返回数据
                    $("#id_num").html(res.total);
                },
                searchele: '#table_search', //搜索模块的id 
                pageele: '#page', //分页id
                search: {
                    pagesize: 20
                } //搜索对象

            });
        })
    </script>
</body>

</html>